#ifndef USERS_H
#define USERS_H
#include <iostream>
#include <fstream>
#include <vector>
#include <pthread.h>
#include "user.h"
using namespace std;

class Users
{
public:
    Users();
   ~Users();
    pthread_mutex_t mutex;

    string filename;
    int lastID;
int readFile();
    int newUser(string name, string pass);
    vector <User> userList;
    int login(string name, string pass);

};




#endif // USERS_H
